package initialize

import (
	"Im/server/system/global"
	"time"

	"github.com/patrickmn/go-cache"
)

func Cache() {

	cacheCfg := global.JLZS_CONFIG.Cache
	if cacheCfg.CacheType == "file" {
		client := cache.New(1*time.Hour, 3*time.Hour)
		global.JLZS_CACHE = client
	}
}
